//
//  LoginNilController.m
//  PosApp
//
//  Created by 刘萍 on 2018/9/13.
//  Copyright © 2018年 李英新. All rights reserved.
//

#import "LoginNilController.h"

@interface LoginNilController ()
@property (weak, nonatomic) IBOutlet UIView *BackView;

@property (weak, nonatomic) IBOutlet UIView *AgainView;
@property (weak, nonatomic) IBOutlet UIButton *AgainBtn;

@end

@implementation LoginNilController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    UIBlurEffect *effect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
    UIVisualEffectView *effectView = [[UIVisualEffectView alloc] initWithEffect:effect];
    effectView.frame = CGRectMake(0, 0, KScreenW, KScreenH);
    effectView.alpha = 0.98; 
    [self.BackView addSubview:effectView];

    
   
    self.AgainView.layer.cornerRadius = self.AgainView.bounds.size.height/2;
    
    self.AgainView.layer.shadowColor = [UIColor colorWithRed:53/255.0 green:172/255.0 blue:255/255.0 alpha:0.75].CGColor;
    self.AgainView.layer.shadowOffset = CGSizeMake(0,5);
    self.AgainView.layer.shadowOpacity = 1;
    self.AgainView.layer.shadowRadius = 27;
    
    CAGradientLayer *gl = [CAGradientLayer layer];
    gl.frame = CGRectMake(0,0,self.AgainView.bounds.size.width,self.AgainView.bounds.size.height);
    gl.startPoint = CGPointMake(0, 0);
    gl.endPoint = CGPointMake(1, 1);
    gl.colors = @[(__bridge id)[UIColor colorWithRed:63/255.0 green:208/255.0 blue:255/255.0 alpha:1].CGColor,(__bridge id)[UIColor colorWithRed:63/255.0 green:185/255.0 blue:255/255.0 alpha:1].CGColor];
    gl.locations = @[@(0.0),@(1.0)];
    
    [self.AgainBtn.layer addSublayer:gl];
    
    self.AgainBtn.layer.cornerRadius = self.AgainBtn.bounds.size.height/2;
    
    self.AgainBtn.layer.masksToBounds = YES;
    
}
- (IBAction)ClickOnbtnToDismissTheC:(id)sender {
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
